
export async function GetState(setState) {
    return new Promise(resolve => {
        setState(state => {
            resolve(state);
            return state;
        })
    })
}